package dao;

import org.apache.ibatis.annotations.Param;
import pojo.User;

import java.util.List;

public interface UserDao {
    List<User> findAll(@Param("name")String name,@Param("pass")String pass, @Param("offset")int offset,@Param("pageSize")int pageSize);
    int addUser(User user);

    User findById(Integer id);

    int updateUser(User user);

    int deleteUserById(Integer id);

    int count(User user);

    int login(User user) ;

}
